﻿using System.Web.Mvc;
using SimpleScrum.Helpers;

namespace SimpleScrum.Areas.Admin.Controllers
{
    public class DbConfigurationController : Controller
    {
        //
        // GET: /DbConfiguration/

        public ActionResult Index()
        {
            return View();
        }

        [HttpPost]
        public ActionResult DoChange()
        {
            NHibernateHelper.DatabaseInitialize();
            return RedirectToAction("Index", "ControlPanel");
        }
    }
}